home *** CD-ROM | disk | FTP | other *** search
/ Java Certification Exam Guide / McGrawwHill-JavaCertificationExamGuide.iso / pc / Web Links and Code / ans / chap21 / exer2101 / NYSE.java next >
Encoding:
Java Source  |  1997-04-20  |  330 b   |  20 lines

  1. import java.rmi.*;
  2. import java.rmi.server.*;
  3.  
  4. public class NYSE extends UnicastRemoteObject
  5.    implements NYSEInterface
  6. {
  7.  
  8.    public NYSE() throws RemoteException {     
  9.    }
  10.  
  11.    public double dowJonesAvg() throws RemoteException {
  12.       double avg = 0.0;
  13.  
  14.       // FIND THE AVERAGE
  15.  
  16.       return avg;
  17.    }
  18.  
  19. }
  20.